/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.just.dusin.ooii.component.kj;

import junit.framework.TestCase;
import org.just.dusin.ooii.component.Source;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author Administrator
 */
public class VKJSourceFilterConsoleSink extends TestCase{
    public void testKJSourceConsole(){
        ApplicationContext ctx=new ClassPathXmlApplicationContext("org/just/dusin/ooii/component/kj/VKJSourceFilterConsoleSink.xml");
        Source amqSource = (Source)ctx.getBean("kjSource");
        Thread t=new Thread(amqSource);
        t.start();
        try {
            t.join();
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        }
    }
}
